def Download(neirong):

    # 提取正文
    txt = re.findall(r'<div id="content">(.*?)</div>', neirong.text, re.S)[0]

    # 优化小说内容
    txt = txt.replace(' ', '')
    txt = txt.replace('<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;', '\n')
    txt = txt.replace('&nbsp;', '  ')
    txt = txt.replace('[', '').replace(']', '')
    txt = txt.replace('<br><br>', '\n  ')
    txt= txt.replace('<br/><br/> ', "\n")
    txt = txt.replace('<br>		 ', " ")
    txt = txt.replace('&amp;lt;', " ")
    txt = txt.replace(' /p&amp;gt; /ter&amp;gt;', " ")
    txt = txt.replace('/p&amp;gt;', " ")
    return txt